package com.ruoyi.base.domain;

import com.ruoyi.common.annotation.Excel;
import javax.validation.constraints.NotNull;
import lombok.Data;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备属性对象 base_property
 * 
 * @author yepanpan
 * @date 2025-02-28
 */
@Data
public class BaseProperty extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增长主键ID */
    private Long id;

    /** 设备分类 */
    @Excel(name = "设备分类")
    private String typeName;
    @NotNull
    private Long typeId;

    /** 属性字段 */
    @Excel(name = "属性字段")
    @NotNull
    private String code;

    /** 属性标签 */
    @Excel(name = "属性标签")
    @NotNull
    private String label;

    /** 表单类型 */
    @Excel(name = "表单类型", dictType="form_type", comboReadDict=true)
    @NotNull
    private String formType;

    /** 数据源或字典 */
    @Excel(name = "数据源或字典")
    private String dsCode;

    /** 是否必填 */
    @Excel(name = "是否必填", dictType="sys_yes_no", comboReadDict=true)
    @NotNull
    private String isRequired;

    /** 是否可搜索 */
    @Excel(name = "是否可搜索", dictType="sys_yes_no", comboReadDict=true)
    private String isSearch;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    @NotNull
    private Long orderNum;


}
